#ifndef NAVIGATION_WIDGET_H
#define NAVIGATION_WIDGET_H

#include <QWidget>
#include <QTimer>
#include "ui_navigation_widget.h"

namespace widgets {

  class Navigation : public QWidget
  {
    Q_OBJECT

  public:
    Navigation(QWidget *parent = 0);
    ~Navigation();

    quint32 get_frame_qty() const;
    void set_frame_qty(quint32 frame_qty);
    quint32 get_current_frame() const;
    void set_current_frame(quint32 frame);

    private slots:
      void on_pushStop_clicked();
      void on_pushPlay_clicked();
      void on_frame_changed(int frame);
      void on_timer();

signals:
      void frame_changed();

  private:
    Ui::NavigationClass ui;
    QTimer timer_;
  };
} // namespace widgets {
#endif // NAVIGATION_WIDGET_H
